{$wrapper_prefix|default}

<script src="{$_STATIC_URL}/trend/admin/js/notify.detail.attachment.js"></script>

<section class="vbox">
    <header class="header bg-white b-b clearfix">
        <div class="row m-t-sm">
            <div class="col-sm-12 m-b-xs">
                <a href="javascript:;" class="btn btn-sm btn-default" id="button_cancel"><i class="fa fa-reply"></i> 返回</a>
                {if $confirm_info.status == 0}
                <a id="btn_operation" class="btn btn-sm btn-primary pull-right" 
                        data-toggle="modal" data-target="#modal_delete_attachment" data-backdrop="static">
                    <i class="fa fa-gavel"></i> 处理
                </a>
                {/if}
            </div>
        </div>
    </header>
    
    <section class="scrollable wrapper">
        <section class="panel panel-default">
            <header class="panel-heading">通知信息详情</header>
            <table class="table table-striped">
                <tbody>
                    <tr>
                        <td class="col-sm-2 text-right">编号：</td>
                        <td class="col-sm-4 p-left-0">{$content._id}</td>
                        <td class="col-sm-2 text-right">通知类型：</td>
                        <td class="col-sm-4 p-left-0">资料删除二次确认</td>
                    </tr>
                    <tr>
                        <td class="col-sm-2 text-right">申请人：</td>
                        <td class="col-sm-4 p-left-0">{$content.send_user_fullname}</td>
                        <td class="col-sm-2 text-right">申请时间：</td>
                        <td class="col-sm-4 p-left-0">{$content.ctime}</td>
                    </tr>
                    <tr>
                        <td class="col-sm-1 text-right">处理状态：</td>
                        <td class="col-sm-5 p-left-0" colspan="3">
                            {if $confirm_info.status == 1}已处理 [同意删除]
                            {else if $confirm_info.status == 2}已处理 [拒绝删除]
                            {else}待处理{/if}
                        </td>
                    </tr>
                </tbody>
            </table>
        </section>
        
        <section class="panel panel-default">
            <header class="panel-heading">资料信息详情</header>
            <table class="table table-striped">
                <tbody>
                    <tr>
                        <td class="col-sm-2 text-right">资料名称：</td>
                        <td class="col-sm-4 p-left-0" colspan="3" id="attachi_title">{$attachment_info.title}</td>
                    </tr>
                    <tr>
                        <td class="col-sm-2 text-right">资料类型：</td>
                        <td class="col-sm-4 p-left-0">
                            {if $attachment_info.mediatype == 'image'}照片
                            {else if $attachment_info.mediatype == 'audio'}录音
                            {else if $attachment_info.mediatype == 'video'}录像
                            {else}未知{/if}
                        </td>
                        <td class="col-sm-2 text-right">容量大小：</td>
                        <td class="col-sm-4 p-left-0">{$attachment_info.filesize} byte</td>
                    </tr>
                </tbody>
            </table>
        </section>
        
        <section class="panel panel-default">
            <header class="panel-heading">相关行动信息详情</header>
            <table class="table table-striped">
                <tbody>
                    <tr>
                        <td class="col-sm-2 text-right">行动名称：</td>
                        <td class="col-sm-4 p-left-0" colspan="3" id="ci_title">{$card_info.title}</td>
                    </tr>
                    <tr>
                        <td class="col-sm-2 text-right">时间：</td>
                        <td class="col-sm-4 p-left-0">{$card_info.tte_start} - {$card_info.tte_end}</td>
                        <td class="col-sm-2 text-right">行动目标：</td>
                        <td class="col-sm-4 p-left-0">{$card_info.respondent}</td>
                    </tr>
                    <tr>
                        <td class="col-sm-2 text-right">地点所在地区：</td>
                        <td class="col-sm-4 p-left-0" colspan="3">{$card_info.region_name}</td>
                    </tr>
                    <tr>
                        <td class="col-sm-2 text-right">地点详细地址：</td>
                        <td class="col-sm-4 p-left-0" colspan="3">{$card_info.address}</td>
                    </tr>
                    <tr>
                        <td class="col-sm-2 text-right">自定义标签：</td>
                        <td class="col-sm-4 p-left-0" colspan="3">{$card_info.label}</td>
                    </tr>
                    <tr>
                        <td class="col-sm-2 text-right">行动描述：</td>
                        <td class="col-sm-4 p-left-0" colspan="3">{$card_info.description}</td>
                    </tr>
                </tbody>
            </table>
        </section>
        
        <section class="panel panel-default">
            <header class="panel-heading">相关案件信息详情</header>
            <table class="table table-striped">
                <tbody>
                    <tr>
                        <td class="col-sm-2 text-right">案件名称：</td>
                        <td class="col-sm-4 p-left-0" colspan="3" id="ai_title">{$archive_info.title}</td>
                    </tr>
                    <tr>
                        <td class="col-sm-2 text-right">案件时间：</td>
                        <td class="col-sm-4 p-left-0">{$archive_info.tte}</td>
                        <td class="col-sm-2 text-right">案件类型：</td>
                        <td class="col-sm-4 p-left-0">{$archive_info.category_name}</td>
                    </tr>
                    <tr>
                        <td class="col-sm-2 text-right">行动目标：</td>
                        <td class="col-sm-4 p-left-0">{$archive_info.respondent}</td>
                        <td class="col-sm-2 text-right">承办部门：</td>
                        <td class="col-sm-4 p-left-0">{$archive_info.department_name}</td>
                    </tr>
                    <tr>
                        <td class="col-sm-2 text-right">自定义标签：</td>
                        <td class="col-sm-4 p-left-0" colspan="3">{$archive_info.label}</td>
                    </tr>
                    <tr>
                        <td class="col-sm-2 text-right">案件简介：</td>
                        <td class="col-sm-4 p-left-0" colspan="3">{$archive_info.description}</td>
                    </tr>
                </tbody>
            </table>
        </section>
    </section>
</section>

<!-- modal - 审核处理 -->
<div class="modal fade" id="modal_delete_attachment">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close close-modal" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="modal_title">资料删除二次确认处理</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" action="/archiveadmin/content/operateDelete" method="post" id="edit_form_attachment">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">处理类型</label>
                        <div class="col-sm-7"><p class="form-control-static">资料删除二次确认</p></div>
                    </div>
                    <div class="line line-dashed line-lg pull-in"></div>
                    
                    {if false}
                    <div class="form-group">
                        <label class="col-sm-3 control-label">案件标题</label>
                        <div class="col-sm-7"><p class="form-control-static" id="form_title_archive"></p></div>
                    </div>
                    <div class="line line-dashed line-lg pull-in"></div>
                    
                    <div class="form-group">
                        <label class="col-sm-3 control-label">行动名称</label>
                        <div class="col-sm-7"><p class="form-control-static" id="form_title_card"></p></div>
                    </div>
                    <div class="line line-dashed line-lg pull-in"></div>
                    {/if}
                    
                    <div class="form-group">
                        <label class="col-sm-3 control-label">资料标题</label>
                        <div class="col-sm-7"><p class="form-control-static" id="form_title_attachment"></p></div>
                    </div>
                    <div class="line line-dashed line-lg pull-in"></div>
                    
                    <div class="form-group">
                        <label class="col-sm-3 control-label">是否同意删除</label>
                        <div class="col-sm-7">
                            <label class="checkbox-inline p-left-0">
                                <input type="radio" name="status" value="1" checked="checked" />&nbsp;同意
                            </label>
                            <label class="checkbox-inline">
                                <input type="radio" name="status" value="2" />&nbsp;拒绝
                            </label>
                        </div>
                    </div>
                    <div class="line line-dashed line-lg pull-in"></div>
                    
                    <div class="form-group">
                        <label for="memo" class="col-sm-3 control-label">备注</label>
                        <div class="col-sm-7">
                            <textarea class="form-control" id="memo" name="memo" value="" placeholder="请输入备注信息"></textarea>
                        </div>
                    </div>
                    
                    <input type="hidden" name="confirm_id" value="{$confirm_info._id}" />
                    <input type="hidden" name="card_id" value="{$card_info._id}" />
                </form>
            </div>
            <div class="modal-footer">
                <span id="edit_notice"></span>
                <button type="button" id="submit_operation" class="btn btn-s-md btn-primary input-submit">确定</button>
                <button type="button" class="btn btn-danger close-modal input-submit" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!-- / modal - 审核处理 -->

{$wrapper_suffix|default}